package com.zqsoft.bean;

import com.zqsoft.guiHelper.bean.PackageItem;

public class PackageItemBean implements PackageItem {
	private CropBean cropBean;
    private int itemCount;
    
    public String toString(){
    	return this.cropBean.getCropId()+":"+this.itemCount;
    }
    
    public PackageItemBean(CropBean cropBean, int itemCount) {
    	this.cropBean=cropBean;
        this.itemCount = itemCount;
    }
    public void setItemCount(int itemCount) {
        this.itemCount = itemCount;
    }
	public void setCropBean(CropBean cropBean) {
		// TODO Auto-generated method stub
		this.cropBean = cropBean;
	}
	public CropBean getCropBean() {
		return cropBean;
	}
	@Override
	public void cancelClick() {
		// TODO Auto-generated method stub

	}

	@Override
	public int getCropId() {
		// TODO Auto-generated method stub
		return this.cropBean.getCropId();
	}

	@Override
	public int getItemCount() {
		// TODO Auto-generated method stub
		return this.itemCount;
	}

	@Override
	public String getItemName() {
		// TODO Auto-generated method stub
		return this.cropBean.getCropName();
	}

	@Override
	public String getItemPic() {
		// TODO Auto-generated method stub
		return this.cropBean.getSeedPic();
	}

	@Override
	public boolean itemClick() {
		// TODO Auto-generated method stub
		return false;
	}

}
